<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Test.html</title>
</head>
<body>


    <form action="postParameter" method="post">
        <input type="text" name="studentId">
        <input type="text" name="classId">
        <input type="submit" value="提交">
    </form>


    <!-- 使用这个页面来构造ajax请求 -->
    <script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.6.3/jquery.min.js"></script>
    <script>
    //     $.ajax({
    //     type:'post',
    //     // 绝对路径
    //     url:'method',
    //     // 相对路径
    //     // url:'/hello_servlet/method',
    //     success:function(body,status)
    //     {
    //         console.log(body);
    //     }
    // });
    </script>
    
</body>
</html>